<template>
  <div>
    <h3>{{modelValue}}</h3>
    <h3>{{msg}}</h3>
    <input 
      :value="modelValue"
      @input="change"
    />
  </div>
</template>

<script setup>
const props = defineProps(['modelValue', 'msg'])
const emit = defineEmits(['update:modelValue'])

function change(e) {
  emit('update:modelValue', e.target.value)
}
</script>